package com.example.zlloggingservice.dto.response;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @Author zhenliu（孙凌岳）
 * @Description AI-操作日志响应DTO
 * @Date 2025/6/20 16:46
 * @Version 1.0
 */
@Data
public class OperationLogResDTO {
    @ApiModelProperty(value = "日志主键", example = "1001")
    private Long operId;

    @ApiModelProperty(value = "操作用户ID", example = "123456")
    private Long userId;

    @ApiModelProperty(value = "用户名", example = "zhangsan")
    private String username;

    @ApiModelProperty(value = "操作行为", example = "update_user")
    private String action;

    @ApiModelProperty(value = "请求URL", example = "/api/user/update")
    private String url;

    @ApiModelProperty(value = "请求IP地址", example = "192.168.1.1")
    private String ip;

    @ApiModelProperty(value = "操作详情", example = "修改邮箱为 abc@example.com")
    private String detail;

    @ApiModelProperty(value = "操作状态（0失败，1成功）", example = "1")
    private Integer status;

    @ApiModelProperty(value = "操作时间", example = "2025-06-20T14:30:00")
    private LocalDateTime operTime;
}